package com.faceye.core.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.faceye.core.upload.UploadResult;

public interface Upload {
	public List<UploadResult> upoad(HttpServletRequest request);

	/**
	 * 将upload 的结果，转化为json 结构，以支持jQuery-Upload-File识别
	 * 
	 * @todo
	 * @param uploadResult
	 * @return
	 * @author:@haipenge haipenge@gmail.com 2014年8月18日
	 */
	public String uploadResults2Json(List<UploadResult> uploadResults);

	public boolean delete(String filename);
}
